package com.jkoss.wine.merchant.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import cn.afterturn.easypoi.excel.annotation.Excel;


/**
 * 商品分类
 * 
 * @Author 周华军
 * @Version 1.0, 2018-09-26
 * @See
 * @Since com.jkoss.wine.merchant.entity
 * @Description: TODO
 */
@TableName("merchant_product_type")
public class MerchantProductType extends Model<MerchantProductType> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品类型id
     */
    @TableId("merchant_product_type_id")
    private String merchantProductTypeId;
    /**
     * 类型名称
     */
    @Excel(name = "类型名称", orderNum = "0", width = 30)
    @TableField("product_type_name")
    private String productTypeName;
    /**
     * 排序
     */
    @Excel(name = "排序", orderNum = "1", width = 30)
    @TableField("sorting")
    private Integer sorting;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private Date addTime;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;
    /**
     * 是否删除0否1是
     */
    @TableField("del")
    private Integer del;


    public String getMerchantProductTypeId() {
        return merchantProductTypeId;
    }

    public void setMerchantProductTypeId(String merchantProductTypeId) {
        this.merchantProductTypeId = merchantProductTypeId;
    }

    public String getProductTypeName() {
        return productTypeName;
    }

    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }

    public Integer getSorting() {
        return sorting;
    }

    public void setSorting(Integer sorting) {
        this.sorting = sorting;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.merchantProductTypeId;
    }

    @Override
    public String toString() {
        return "MerchantProductType{" +
        ", merchantProductTypeId=" + merchantProductTypeId +
        ", productTypeName=" + productTypeName +
        ", sorting=" + sorting +
        ", addTime=" + addTime +
        ", operator=" + operator +
        ", del=" + del +
        "}";
    }
}
